<template>
	<view class="wf-box">
		<HeadNav titleName="添加自定义RPC网络" :navBarHeight="navBarHeight"></HeadNav>
		
		<view class="main" :style="{ paddingTop: navBarHeight }">
			<view class="pd-box">
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-34.png"></image>
						<text>网络名称</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-35.png"></image>
						<text>RPC URL</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-36.png"></image>
						<text>链上ID</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-37.png"></image>
						<text>象征</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-38.png"></image>
						<text>Transaction Explorer URL</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="info-im">
					<view class="info-tit">
						<image src="../../static/img/me-39.png"></image>
						<text>Explorer API</text>
					</view>
					<view class="info-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="f-row">
					<view>这是测试网</view>
					<view>
						<image src="../../static/img/me-40.png"></image>
					</view>
				</view>
			</view>
		
			<view class="footer-btn">
				<view>保存网络</view>
			</view>
		</view>
	</view>
</template>

<script>
	import HeadNav from "@/components/HeadNav"
	import navBarMixin from '@/mixin/navBarMixin.js'
	export default {
		data() {
			return {
			}
		},
		mixins: [navBarMixin],
		components: {
			HeadNav
		},
		methods: {
			back() {
				uni.navigateBack()
			},
		}
	}
</script>

<style lang="scss" scoped>
	.wf-box {
		overflow: hidden;
		
		.main {
			margin-top: 126rpx;
			padding: 0 30rpx;
			padding-bottom: 80rpx;
			.pd-box {
				padding: 30rpx;
				border-radius: 10rpx;
				background: #fff;
				
				.info-im {
					margin-top: 30rpx;
					.info-tit {
						display: flex;
						align-items: center;
						image {
							margin-right: 20rpx;
							width: 48rpx;
							height: 48rpx;
						}
						text {
							color: #333;
						}
					}
					.info-fill {
						height: 80rpx;
						padding: 0 30rpx;
						margin-top: 20rpx;
						background: #F8F8F8;
						input {
							height: 100%;
							width: 100%;
						}
					}
					&:first-child {
						margin-top: 0;
					}
				}
				
				.f-row {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-top: 60rpx;
					image {
						width: 36rpx;
						height: 36rpx;
					}
				}
			}
		
			.footer-btn {
				padding: 0 80rpx;
				height: 80rpx;
				margin-top: 100rpx;
				view {
					height: 100%;
					line-height: 80rpx;
					border-radius: 40rpx;
					color: #fff;
					text-align: center;
					background-color: $theme-color-a;
				}
			}
		}
	}
</style>